package org.celery.modules.goods.wrapper;

import lombok.AllArgsConstructor;
import org.springblade.core.mp.support.BaseEntityWrapper;
import org.springblade.core.tool.utils.BeanUtil;
import org.celery.modules.goods.entity.GoodsCategory;
import org.celery.modules.goods.vo.GoodsCategoryVO;

/**
 * 商品类别表.包装类,返回视图层所需的字段
 *
 * @author luoqc
 * @since 2021-10-24
 */
public class GoodsCategoryWrapper extends BaseEntityWrapper<GoodsCategory, GoodsCategoryVO>  {

    public static GoodsCategoryWrapper build() {
        return new GoodsCategoryWrapper();
    }

	@Override
	public GoodsCategoryVO entityVO(GoodsCategory goodsCategory) {
		GoodsCategoryVO goodsCategoryVO = BeanUtil.copy(goodsCategory, GoodsCategoryVO.class);

		return goodsCategoryVO;
	}

}
